package team.freeroom.hotelmanage.repository.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import team.freeroom.hotelmanage.repository.entity.Account;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface AccountMapper {
    int add(Account account);
    int edit(Account account);
    int delete(Long id);
    List<Account> findList(Map<String, Object> queryMap);
    Integer getTotal(Map<String, Object> queryMap);
    Account find(Long id);
    Account findByName(String name);
    List<Account> findAll();
    int isBlack(String idCard);
}
